package com.citycloud.ccuap.tc.admin.repository;

import com.citycloud.ccuap.tc.admin.entity.SysProjectDefaultFunction;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 项目（站点）默认菜单数据库操作
 * @author zhusr
 *
 */

@Repository
public interface SysProjectDefaultFunctionRepository extends MybatisRepository<SysProjectDefaultFunction, String> {
	List<SysProjectDefaultFunction> findByPid(String pid);
	
	List<SysProjectDefaultFunction> findByPidNullOrderByOrderNo();
	
	Long countByPid(String pid);

	List<SysProjectDefaultFunction> findByPidOrderByOrderNo(String funId);

	List<SysProjectDefaultFunction> findByFullPathContainingOrderByOrderNo(String funName);

	List<SysProjectDefaultFunction> findByFunNameOrderByOrderNo(String name);

	SysProjectDefaultFunction findByFunId(String funid);
}